package cn.sherer.beans.douyin;

import java.util.List;
import java.util.ArrayList;
import java.io.Serializable;

/**
 * 抖音返回结果
 */
public class DyResult<T> implements Serializable {
    private int err_no;
    private int error_code;
    private int err_code;
    private String err_tips;
    private String description;
    private String err_msg;
    private T data;
    private int total_num;
    private String body;
    private String message;
    private DyResultExtra extra;
    private String log_id;
    private List<String> auth_app_id_list;

    public DyResult() {
    }

    public DyResult(int err_no, String err_tips) {
        this.err_no = err_no;
        this.error_code = err_no;
        this.err_code = err_no;
        this.err_tips = err_tips;
        this.description = err_tips;
        this.err_msg = err_tips;
    }

    public int getErr_no() {
        return err_no;
    }

    public void setErr_no(int err_no) {
        this.err_no = err_no;
        this.error_code = err_no;
        this.err_code = err_no;
    }

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
        this.err_no = error_code;
        this.err_code = error_code;
    }

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
        this.err_no = err_code;
        this.error_code = err_code;
    }

    public String getErr_tips() {
        return err_tips;
    }

    public void setErr_tips(String err_tips) {
        this.err_tips = err_tips;
        this.description = err_tips;
        this.err_msg = err_tips;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
        this.err_tips = description;
        this.err_msg = description;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_tips = err_msg;
        this.description = err_msg;
        this.err_msg = err_msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getTotal_num() {
        return total_num;
    }

    public void setTotal_num(int total_num) {
        this.total_num = total_num;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DyResultExtra getExtra() {
        return extra;
    }

    public void setExtra(DyResultExtra extra) {
        this.extra = extra;
    }

    public String getLog_id() {
        return log_id;
    }

    public void setLog_id(String log_id) {
        this.log_id = log_id;
    }

    public List<String> getAuth_app_id_list() {
        return auth_app_id_list == null ? new ArrayList<>() : auth_app_id_list;
    }

    public void setAuth_app_id_list(List<String> auth_app_id_list) {
        this.auth_app_id_list = auth_app_id_list == null ? new ArrayList<>() : auth_app_id_list;
    }

    @Override
    public String toString() {
        return "DyResult{" + "err_no=" + err_no + ", err_tips=" + err_tips + ", body=" + body + ", message=" + message + ", extra=" + extra.toString() + ", log_id=" + log_id + "auth_app_id_list=" + auth_app_id_list + "}";
    }
}
